package com.ruoyi.shop.util;

import java.util.Calendar;
import java.util.Date;

/**
 * @Author Alan Zhang
 * @Date 2021/10/7 16:06
 */
public class NsDateUtils {
    /**
     * 获取前一天日期
     * @return
     */
    public static Date addDateDays(int d){
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.DATE,d);
        return calendar.getTime();
    }
}
